<%--
  Created by IntelliJ IDEA.
  User: 陪你度过漫长岁月
  Date: 2022/7/30
  Time: 14:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<style>
    #box1{
        position: relative;
    }
    #birth{
        position: absolute;
        top: 197px;
        right:-160px;
    }
</style>
<body>
    <div id="box1">
        <h1>增加个人简历信息</h1>
        <form action="${pageContext.request.contextPath}/Inserservlet" method="post">
            <table border="1" cellpadding="1" cellspacing="1" class="table1">
                <tr>
                    <td>姓名:</td>
                    <td><input type="text" name="userName"></td>
                </tr>
                <tr>
                    <td>性别:</td>
                    <td><input type="radio" name="sex" checked="" value="男">男<input type="radio" name="sex" value="女">女</td>
                </tr>
                <tr>
                    <td>籍贯地址:</td>
                    <td><input type="text" name="address"></td>
                </tr>
                <tr id="tr4">
                    <td>出生时间:</td>
                    <td><input type="text" name="birth"></td>
                </tr>

                <tr>
                    <td>联系电话:</td>
                    <td><input type="text" name="telephone"></td>
                </tr>
                <tr>
                    <td>毕业学校:</td>
                    <td><input type="text" name="school"></td>
                </tr>
                <tr>
                    <td>简历状态:</td>
                    <td><input type="radio" name="status" checked="" value="1">公开<input type="radio" name="status" value="0">保密</td>
                </tr>
                <tr>
                    <td>操作:</td>
                    <td><input type="submit" value="新增"> <input type="button" value="返回" onclick="fanhui()"></td>
                </tr>
            </table>
            <span id="birth">1</span>
        </form>
        <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
        <script>
            function fanhui(){
                history.back();
            }
            function DataTime(){
                $.getJSON("BirthServlet","birth="+birth,function (data){
                    if(data="true"){
                        $("#birth").html("日期格式(xxxx-xx-xx)");
                        location.href="index.jsp"
                    }else {
                        $("#birth").html("");
                    }
                })
            }
        </script>
    </div>
</body>
</html>
